package com.declum.naduvar.locking.client;

import java.util.HashMap;
import java.util.Map;

public class LockRequest {
	Map<String, String> request = new HashMap<String, String>();

	public void setHeader(String header, String value) {
		if (header != null && value != null) {
			this.request.put(header, value);
		}
	}

	public String getHeader(String header) {
		return this.request.get(header);
	}

	public String getHeaderString() {
		String headerString = "";
		for (String reqString : this.request.keySet()) {
			headerString += reqString + ": " + this.request.get(reqString) + "\r\n";
		}
		headerString += "\r\n";
		return headerString;
	}
}
